package cn.qzuie.smart.module.dorm.controller.admin.buildings.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.qzuie.smart.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.qzuie.smart.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 栋分页 Request VO")
@Data
public class BuildingsPageReqVO extends PageParam {

    @Schema(description = "楼栋名", example = "芋艿")
    private String buildingName;

    @Schema(description = "昵称", example = "李四")
    private String nickName;

    @Schema(description = "校区名称：校本部1；文创园2；科创园3")
    private Integer campus;

    @Schema(description = "总楼层")
    private Integer totalFloors;

    @Schema(description = "总房间数")
    private Integer totalRooms;

    @Schema(description = "楼管")
    private Long charger;

    @Schema(description = "建造日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] buildDate;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}